import { BasicPageParams, BasicFetchResult } from '@/api/model/baseModel';

export type GetRolePageListReq = BasicPageParams & {
  kw?: string;
  status?: number;
};

export interface CreateRoleReq {
  role_name: string;
  sort: number;
  status: number;
  remark: string;
  menu_ids: number[];
}

export interface UpdateRoleReq extends CreateRoleReq {
  role_id: number;
}

export interface RoleListItem {
  role_id: number;
  role_name: string;
  sort: number;
  status: number;
  remark: string;
  created_at: string;
}

export type GetRolePageListRes = BasicFetchResult<RoleListItem>;
